package com.example.shoppingmall.dao;

import com.example.shoppingmall.pojo.PayType;
import com.example.shoppingmall.pojo.Payment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PaymentMapper {

    //联合模糊查询
    public List<Payment> payList(@Param("bill_id") Integer bill_id, @Param("third_id") Integer third_id, @Param("userPhone") String userPhone,
                                 @Param("pageNo") Integer pageNo, @Param("pageNum") Integer pageNum);

    //总条数
    public int total(@Param("bill_id") Integer bill_id, @Param("third_id") Integer third_id, @Param("userPhone") String userPhone);

    //明细
    public Payment getPay(@Param("bill_id") Integer bill_id);

    //支付状态List
    public List<PayType> getPayType();




}
